#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>

using namespace std;
const int N = 1e5 + 10;
int arr[N];
int n, k;

int calc(int x)
{
    int count = 0;
    for (int i = 1; i <= n; i++) count += (arr[i] / x);
    return count;
}
int main()
{
    cin >> n >> k;
    for (int i = 1; i <= n; i++) cin >> arr[i];
    int left = 0, right = 1e8;
    while (left < right)
    {
        int mid = left + (right - left + 1) / 2;
        if (calc(mid) >= k) left = mid;
        else right = mid - 1;
    }
    cout << left << endl;
    return 0;
}